﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTS
{
    class Walor
    {
        private String symbol;
        private bool isShort;
        private int liczba;
        private Double avgBuy;
        private string owner;

        public Walor() { }
        public Walor(String _symbol, bool _isShort, int _liczba, Double _avgBuy, string _owner)
        {
            symbol = _symbol;
            isShort = _isShort;
            liczba = _liczba;
            avgBuy = _avgBuy;
            owner = _owner;
        }
        public String getSymbol() { return symbol; }
        public bool getIsShort() { return isShort; }
        public int getLiczba() { return liczba; }
        public Double getAvgBuy() {return avgBuy;}
        public string getOwner() { return owner; }
        public void setSymbol(String s) { symbol = s; }
        public void setIsShort(bool rt) { isShort = rt; }
        public void setLiczba(int l) { liczba = l; }
        public void setAvgBuy(Double d) { avgBuy = d; }
        public void setOwner(string _owner) { owner = _owner; }
        override public string ToString()
        {
            return symbol.ToString() + " " + isShort.ToString() + " " +
                liczba.ToString() + " " + avgBuy.ToString();
        }
    }
}
